<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 16-10-16
 * Time: 下午4:01
 */
return [
    /* 后台导航定义
        字段解释
        name ： 导航名字
        url ： 跳转地址  is_show 为 0 的菜单可以忽略此参数  一级导航可忽略此参数
        icon ： 导航图标  is_show 为 0 的菜单可以忽略此参数  二级导航可忽略此参数
        is_show ： 是否显示  1 显示  0 隐藏
        path ： 控制器/方法  用来定位导航配置项，获取相关导航参数
        active ： 导航选中状态定位  当本导航 is_show 字段等于 0 时， 需要指定需要高亮的导航配置的配置名称  如果 active 为空  直接使用本导航的导航名称定位
        children ： 二级导航
     */


    'index' => [
        'name' => '后台主页', 'icon'=>'icon-shouyeshouye',
        'children' => [
            'index_index' => [ 'name' => '欢迎页面', 'url' => url('index/index'), 'is_show' => 1, 'path' => 'index/index',  'active' => 'index_index']
        ]
    ],
    'system' => [
        'name' => '系统设置', 'icon'=>'icon-shezhi1',
        'children' => [
            'site_index' => [ 'name' => '网站设置', 'url' => url('site/index'), 'is_show' => 1, 'path' => 'site/index',  'active' => 'site_index'],
            'kefu' => [ 'name' => '客服管理', 'url' => url('kefu/index'), 'is_show' => 1, 'path' => 'kefu/index',  'active' => 'kefu'],
            'save_kefu_page' => [ 'name' => '客服添加/编辑', 'is_show' => 0, 'path' => 'kefu/save_kefu_page',  'active' => 'kefu'],
            'banner' => [ 'name' => 'banner管理',  'url' => url('banner/index'), 'is_show' => 1, 'path' => 'banner/index',  'active' => 'banner'],
            'save_banner' => [ 'name' => 'banner添加/编辑', 'is_show' => 0, 'path' => 'banner/save_banner',  'active' => 'banner'],
        ]
    ],
    'product' => [
        'name' => '产品管理', 'icon' => 'icon-chanpinliebiaoicon',
        'children' => [
            'product_index' => [ 'name' => '产品列表', 'url' => url('product/index'), 'is_show' => 1, 'path' => 'product/index',  'active' => 'product_index'],
            'save_product' => [ 'name' => '添加/编辑产品', 'is_show' => 0, 'path' => 'product/save_product', 'active' => 'product_index'],
            'product_upload_image' => [ 'name' => '上传产品图片', 'is_show' => 0, 'path' => 'product/upload_image', 'active' => 'product_index'],
            'del_product' => [ 'name' => '删除产品', 'is_show' => 0, 'path' => 'product/del_product', 'active' => 'product_index'],
            'category' => [ 'name' => '产品分类', 'icon' => 'icon-fenlei1', 'url' => url('category/index'), 'is_show' => 1, 'path' => 'category/index', 'active' => 'category'],
            'save_category' => [ 'name' => '添加/编辑产品分类', 'is_show' => 0, 'path' => 'category/save_category', 'active' => 'category'],
        ]
    ],
//    'admin' => [
//        'name' => '管理员管理', 'icon' => 'icon-guanliyuan',
//        'children' => [
//            'admin_index' => [ 'name' => '管理员列表', 'url' => url('admin/index'), 'is_show' => 1, 'path' => 'admin/index',  'active' => 'admin_index'],
//            'admin_info' => [ 'name' => '添加/编辑管理员', 'is_show' => 0, 'path' => 'admin/admin_info',  'active' => 'admin_index'],
//            'save_admin' => [ 'name' => '管理员数据写入数据库', 'is_show' => 0, 'path' => 'admin/save_admin',  'active' => 'admin_index'],
//            'admin_jurisdiction' => [ 'name' => '权限管理', 'is_show' => 0, 'path' => 'admin/admin_jurisdiction',  'active' => 'admin_index'],
//            'save_jurisdiction' => [ 'name' => '权限写入数据库', 'is_show' => 0, 'path' => 'admin/save_jurisdiction',  'active' => 'admin_index'],
//            'admin_action' => [ 'name' => '管理员行为', 'icon' => 'icon-caozuoxingwei', 'url' => url('admin/admin_action'), 'is_show' => 1, 'path' => 'admin/admin_action',  'active' => 'admin_action'],
//            'admin_action_info' => [ 'name' => '添加/编辑管理员行为', 'is_show' => 0, 'path' => 'admin/admin_action_info',  'active' => 'admin_index'],
//            'save_admin_action' => [ 'name' => '入库管理员行为', 'is_show' => 0, 'path' => 'admin/save_admin_action',  'active' => 'admin_index'],
//            'admin_log' => [ 'name' => '管理员日志', 'icon' => 'icon-bianji1', 'url' => url('admin/adminlog'), 'is_show' => 1, 'path' => 'admin/adminlog',  'active' => 'admin_log']
//        ]
//    ],
    'page' => [
        'name' => '单页管理', 'icon' => 'icon-youhuiquan2',
        'children' => [
            'page_index' => [ 'name' => '单页列表', 'url' => url('page/index'), 'is_show' => 1, 'path' => 'page/index',  'active' => 'page_index'],
            'save_page' => [ 'name' => '添加/编辑单页内容', 'is_show' => 0, 'path' => 'page/save_page',  'active' => 'page_index'],
        ]
    ],
    'casus' => [
        'name' => '合作案例', 'icon' => 'icon-youhuiquan2',
        'children' => [
            'casus_index' => [ 'name' => '案例列表', 'url' => url('casus/index'), 'is_show' => 1, 'path' => 'casus/index',  'active' => 'casus_index'],
            'save_casus' => [ 'name' => '添加/编辑案例', 'is_show' => 0, 'path' => 'casus/save_casus',  'active' => 'casus_index'],
        ]
    ],
    'news' => [
        'name' => '新闻中心', 'icon' => 'icon-youhuiquan2',
        'children' => [
            'news_index' => [ 'name' => '新闻列表', 'url' => url('news/index'), 'is_show' => 1, 'path' => 'news/index',  'active' => 'news_index'],
            'save_news' => [ 'name' => '添加/编辑新闻', 'is_show' => 0, 'path' => 'news/save_news',  'active' => 'news_index'],
            'news_category' => [ 'name' => '新闻分类', 'icon' => 'icon-fenlei1', 'url' => url('news/news_category'), 'is_show' => 1, 'path' => 'news/news_category', 'active' => 'news_category'],
            'save_category' => [ 'name' => '添加/编辑新闻分类', 'is_show' => 0, 'path' => 'news/save_category', 'active' => 'news_category'],
        ]
    ],
    'article' => [
        'name' => '文章管理', 'icon' => 'icon-youhuiquan2',
        'children' => [
            'article_index' => [ 'name' => '文章列表', 'url' => url('article/index'), 'is_show' => 1, 'path' => 'article/index',  'active' => 'article_index'],
            'save_article' => [ 'name' => '添加/编辑文章', 'is_show' => 0, 'path' => 'article/save_article',  'active' => 'article_index'],
            'article_category' => [ 'name' => '文章分类', 'icon' => 'icon-fenlei1', 'url' => url('article/article_category'), 'is_show' => 1, 'path' => 'article/article_category', 'active' => 'article_category'],
            'save_category' => [ 'name' => '添加/编辑文章分类', 'is_show' => 0, 'path' => 'article/save_category', 'active' => 'article_category'],
        ]
    ],
    'nav' => [
        'name' => '前台导航', 'icon' => 'icon-youhuiquan2',
        'children' => [
            'nav_index' => [ 'name' => '导航列表', 'icon' => 'icon-fenlei1', 'url' => url('nav/index'), 'is_show' => 1, 'path' => 'nav/index', 'active' => 'nav_index'],
            'save_category' => [ 'name' => '添加/编辑导航', 'is_show' => 0, 'path' => 'nav/save_nav', 'active' => 'nav_index'],
        ]
    ],
];